package hqb.dev.webdeploy.flow;

import cn.hutool.json.JSONObject;
import lombok.Data;

import java.io.File;

/**
 * @author HQB--2024-04-22
 **/
@Data
public class FlowStepReplaceRun {
    private File src;
    private File dest;

    public FlowStepReplaceRun(JSONObject x, File unzipDir) {
        String srcStr = x.getStr("src");
        this.src = new File(unzipDir, srcStr);
        String destStr = x.getStr("dest");
        this.dest = new File(destStr);
    }

}
